package com.byronspace.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class AdminController {
	@Autowired
	private JdbcTemplate jdbcTemplate;

	
	@RequestMapping("/login")
	public String login(ModelMap map) {
		map.addAttribute("errorMsg", "参数不齐全");

		return "login/pages/login";
	}
	@RequestMapping("/index")
	public String index(ModelMap map) {
		return "login/pages/index";
	}
	@RequestMapping("/tables")
	public String tables(ModelMap map) {
		return "login/pages/tables";
	}

}
